<template>
    <div>
        <div v-if="$store.state.user.phoneId">
            <div>欢迎用户{{$store.state.user.phoneId}}
                <input type="button" value="退出" @click="$store.commit('DELETE_PHONE_ID')">
            </div>
        </div>
        <div v-else>
            请<router-link to="/login">登陆/注册</router-link>
        </div>




    </div>
</template>

<script>
    export default {
        name: "My",
        methods:{

        }
    }
</script>

<style scoped>

</style>